import request from '@/utils/request'

// 查询用车申请列表
export function listCar_application(query) {
  return request({
    url: '/ehr/car_application/list',
    method: 'get',
    params: query
  })
}

// 查询用车申请详细
export function getCar_application(applyId) {
  return request({
    url: '/ehr/car_application/' + applyId,
    method: 'get'
  })
}

// 新增用车申请
export function addCar_application(data) {
  return request({
    url: '/ehr/car_application',
    method: 'post',
    data: data
  })
}

// 修改用车申请
export function updateCar_application(data) {
  return request({
    url: '/ehr/car_application',
    method: 'put',
    data: data
  })
}

// 删除用车申请
export function delCar_application(applyId) {
  return request({
    url: '/ehr/car_application/' + applyId,
    method: 'delete'
  })
}

// 提交用车申请审批
export function approvalCar_application(data) {
  return request({
    url: '/ehr/car_application/approval',
    method: 'post',
    data: data
  })
}
